package org.JWCB.friend.domain.user.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.JWCB.common.security.valid.innotation.AllowedValues;

@Getter
@Setter
@ToString
public class UserEditDto {
    @NotNull(message = "userId不为空")
    private Long userId;

    @NotNull(message = "nickName不为空")
    private String nickName;

    @AllowedValues(value = {"1","2"},canNull = false)
    private int sex;
    @Email
    private String email;

    private String wechat;

    private String school;

    private String major;

    private String introduce;

}
